package com.lvyuely.common.web.core.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Simple to Introduction
 * <pre>
 * <b>项目</b> :  lvyuely-archetype-webapp
 * <b>包名</b> :  com.lvyuely.common.web.core.entity
 * <b>类名</b> :  AbstractEntity
 * <b>描述</b> :
 * <b>版权</b> :  Copyright (c) 1999-2015 广联达软件股份有限公司
 * </pre>
 *
 * @author :   lvyue
 * @version :  1.0
 * @date :     15/1/26 13:16
 */
public abstract class AbstractEntity<PK extends Serializable> {

    /**
     * 数据库主键
     */
    private PK id;

    /**
     * 创建时间
     */
    private Timestamp createdAt;

    /**
     * 更新时间
     */
    private Timestamp updatedAt;

    public PK getId() {
        return id;
    }

    public void setId(PK id) {
        this.id = id;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    public Timestamp getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Timestamp updatedAt) {
        this.updatedAt = updatedAt;
    }
}
